<template>
	<view class="contain">
		<view class="flex justify-center"><image src="https://guangxins.oss-cn-shenzhen.aliyuncs.com/images/home/haiyang.png" mode="aspectFit"></image></view>
		<view class="flex justify-center"><u-loading-icon inactive-color="blue" text="加载中"></u-loading-icon></view>
	</view>
</template>

<script setup lang='ts'>
import { ref,reactive } from 'vue'
import {  onLoad,onShow } from '@dcloudio/uni-app'
onLoad((e:any)=>{
	if(e!=null && e.url!=null){
		if(e.keyid!=null){
			//清除一次Session,让其退出登录
			uni.clearStorageSync();
			console.log("第三方标识id",e.keyid);
			uni.setStorageSync("keyid",e.keyid); //这里若保存的key=fuyuan,在Login登录的时候会进行判断
		}
		let jurl=e.url;
		let num=-1;
		if(jurl.indexOf("index")!=-1 || jurl.indexOf("openPDF")!=-1 || jurl.indexOf("mine")!=-1){
			num=2;
		}
		setTimeout(()=>{
			if(num!=-1){
				uni.$tools.GoUrl(jurl,num);
			}else{
				uni.$tools.GoUrl(jurl);
			}
		},2000);
	}
});

</script>

<style lang='scss' scoped>
	@import "jumpurl.scss";
</style>